# reference: 20190520_韦恩图.ipynb

import matplotlib.pyplot as plt
from matplotlib_venn import venn2, venn3, venn2_circles
import numpy as np

v = venn2(subsets=[2, 2, 1], set_labels=('', ''))
v.get_label_by_id('10').set_text("$A$")
v.get_label_by_id('01').set_text("$B$")
v.get_label_by_id('11').set_text("$A\cap B$")
plt.savefig("4.18-venn.png")